package flc.ast.utils;

import androidx.annotation.Keep;

import com.blankj.utilcode.util.Utils;

import flc.ast.R;
import stark.common.basic.sound.BaseSoundManager;

@Keep
public class SoundManager extends BaseSoundManager {

    private static SoundManager sInstance;
    private int mLotSoundId = INIT_VALUE;
    private int mEndSoundId = INIT_VALUE;
    private int mBoomSoundId = INIT_VALUE;
    private int mStartSoundId = INIT_VALUE;


    private SoundManager() {
    }

    public synchronized static SoundManager getInstance() {
        if (sInstance == null) {
            sInstance = new SoundManager();
        }
        return sInstance;
    }

    /**
     * 释放资源
     */
    @Override
    public void release() {
        super.release();
        mLotSoundId = INIT_VALUE;
        mEndSoundId = INIT_VALUE;
        mBoomSoundId = INIT_VALUE;
        mStartSoundId = INIT_VALUE;

        //sInstance = null;
    }

}
